package com.cn.lp.converter.demo.converter;

import com.cn.lp.converter.BeanConverter;
import com.cn.lp.converter.CommonTypeChange;
import com.cn.lp.converter.annotation.ConverterMapper;
import com.cn.lp.converter.annotation.TypeChangeMethod;
import lombok.Data;


@ConverterMapper
public interface TestCommonTypeChangeConverter extends BeanConverter<TestCommonTypeChangeConverter.EntityA, TestCommonTypeChangeConverter.EntityB>,
    CommonTypeChange {

    @Data
    class EntityA {

        private String changeData1;

        private String changeDate2;

    }

    @Data
    class EntityB {

        private long changeData1;

        private int changeDate2;

    }

    @TypeChangeMethod(primary = true)
    default long customMethod(String string) {
        return 999999L;
    }

}
